<template>
  <div>
    <h2>消息id：{{ id }}</h2>
    <p>消息title：{{ title }}</p>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  props: ['id', 'title'],
  mounted() {
    console.log(this.$route)
  }
}
</script>
